<template>
	<view>
		<web-view ref="webview" class="webView" :src="src"></web-view>
	</view>
</template>

<script setup>
	import {ref} from 'vue'
import { onLoad } from '@dcloudio/uni-app';
const src = ref()
onLoad((query) => {
	console.log(query);
	src.value = query.src;
});
const objectToQueryString = (obj) => {
	return (
		'?' +
		Object.entries(obj)
			.map(([key, value]) => `${key}=${value}`)
			.join('&')
	);
};
</script>

<style></style>
